package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.AfterSaleOrderMapper;
import com.rongke.model.AfterSaleOrder;
import com.rongke.service.AfterSaleOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @AfterSaleOrderServiceImpl
 * @售后定订单ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class AfterSaleOrderServiceImpl extends ServiceImpl<AfterSaleOrderMapper, AfterSaleOrder> implements AfterSaleOrderService {
    @Autowired
    private AfterSaleOrderMapper afterSaleOrderMapper;
    @Override
    public List<AfterSaleOrder> selectByCondition(AfterSaleOrder aso) {
        return afterSaleOrderMapper.selectByCondition(aso);
    }

    @Override
    public List<AfterSaleOrder> selectAfterOrders(Map map) {

            return afterSaleOrderMapper.selectAfterOrders(map);
    }

    @Override
    public Integer selectAfterOrdersSize(Map map) {
        return afterSaleOrderMapper.selectAfterOrdersSize(map);
    }

    @Override
    public Map selectOneDetail(Long id) {
        return afterSaleOrderMapper.selectOneDetail(id);
    }

    @Override
    public List<Map> selectAfterOrderDetail(Long id) {

        return afterSaleOrderMapper.selectAfterOrderDetail(id);
    }

}
